<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="//cdn.bootcdn.net/ajax/libs/layui/2.5.7/css/layui.css">
<link rel="stylesheet" href="//cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>

<body>
<div class="layui-row" style="margin-right: 2px;">

      <form class="layui-form" action="{:url('wendasns/answer/edit')}" method="post">
        <input type="hidden" name="id" value=""/>
        <div class="layui-form-item"><textarea id="answer-edit-textarea" name="content" lay-verify="content" class="layui-hide" data-id=""></textarea></div>
        {:hook('question_show_answer_form_item')}
        <div class="layui-form-item">
          <div class="layui-inline" style="text-align: right;float: right;">
            <div class="layui-input-inline" style="width: auto;">
              <button class="layui-btn" lay-submit="" lay-filter="J_ajax_submit_btn">提交</button>
            </div>
          </div>
        </div>
    </form>

</div>
<script src="//cdn.bootcdn.net/ajax/libs/layui/2.5.7/layui.all.js"></script>
<script src="/ueditor/ueditor.init.js?v={:time()}"></script>
<script>
	;!function(){var $ = layui.$,layedit = layui.layedit;layedit.set({tool:["undo","redo","|","bold","italic","|","removeformat","|","insertorderedlist","insertunorderedlist","paragraph","|","justifyleft","justifycenter","justifyright","|","link","unlink","|","simpleupload","emotion","|","insertcode"],uploadImage:{
	url:'{:url('wendasns/common/upload',['type'=>'answer'])}'
	}});
	var content = window.parent.layui.$('#answer-'+3).html();console.log(content);
	$('#answer-edit-textarea').val(content);
	var index = layedit.build("answer-edit-textarea");
	layui.$("#answer-edit-textarea").attr("data-id",index);
}();
</script>
</body>
</html>